<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('Device/data_list')}" method="post">
        <div class="bjui-searchBar">
            <label>设备状态:</label>
            <select name="dev_status" id="dev_status" data-toggle="selectpicker">
                <option value="">全部</option>
                <option value="0">故障</option>
                <option value="1">空闲</option>
                <option value="2">运行中</option>
            </select>&nbsp;
            <script type="text/javascript">
                var dev_status = "{:I('dev_status')}";
                $("#dev_status option[value='"+dev_status+"']").attr("selected",true);
            </script>
            <label>设备版本:</label>
            <select name="dev_version" id="dev_version" data-toggle="selectpicker">
                <option value="">全部</option>
                <volist name="versionList" id="vel">
                    <option value="{$vel.ve_id}">{$vel.ve_value}</option>
                </volist>
            </select>&nbsp;
            <script type="text/javascript">
                var dev_version = "{:I('dev_version')}";
                $("#dev_version option[value='"+dev_version+"']").attr("selected",true);
            </script>
            <label>设备编号：</label><input type="text" id="ve_value" value="{$search_words}" name="search_words" class="form-control" size="10">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <div class="pull-right">
                <button class="btn btn-green" href="{:U('Device/operation',array('ot'=>'add'))}" class="btn btn-blue" data-toggle="doajax" data-confirm-msg="确定要新增设备吗？">新增设备</button>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
            <tr>
                <th>编号</th>
                <th>创建日期</th> 
                <th>设备状态</th>
                <th>版本信息</th>
            </tr>
        </thead>
        <tbody>
            <volist name="dataList" id="dl">
                <tr data-id="1">
                    <td>{$dl['dev_id']}</td>
                    <td>{$dl['dev_create_time']|date="Y-m-d H:i:s",###}</td>
                    <td>{$dl['dev_status_name']}</td>
                    <td>{$dl['ve_value']|default='---'}</td>
                </tr>
            </volist>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共{$count}条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$count}" data-page-size="30" data-page-current="1">
    </div>
</div>